<template>
  <div>
    <el-button @click="domWay"> 虚拟dom渲染</el-button>
    <div id="dom" style="height: 200px;border: 1px solid red;"></div>
  </div>
</template>

<script name="demo1" setup>
import {alert} from '@/views/demo/h-alert'

const data = 0
const domWay = () => {
  alert(document.getElementById('dom'), data)
}
</script>

<style scoped>
</style>